//
//  ChooseTF.m
//  LClass
//
//  Created by 严军 on 16/5/30.
//  Copyright © 2016年 YanJun. All rights reserved.
//

#import "ChooseTF.h"

@implementation ChooseTF

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

-(instancetype)init
{
    self=[super init];
    if (self) {
        self.frame=CGRectMake(0, 0, ScreenWidth, ScreenHeight);
        self.backgroundColor=[UIColor blackColor];
        self.alpha=0.7;
    }
    return self;
}

-(void)initLayout
{
    _tableView=[[UITableView alloc]initWithFrame:CGRectMake(0, 0, ScreenWidth*0.7, ScreenHeight*0.7) style:UITableViewStyleGrouped];
    _tableView.delegate=self;
    _tableView.dataSource=self;
    [self addSubview:_tableView];
    _tableView.backgroundColor=[UIColor whiteColor];
    [[Utility sharedInstance] setLayerView:_tableView borderW:1 borderColor:ThemeGrayColor radius:8];
}

-(void)popView
{
    [UIView beginAnimations:@"Pop" context:nil];
    [UIView setAnimationCurve:UIViewAnimationCurveEaseIn];
    [UIView setAnimationDuration:1.0];
    [UIView setAnimationDelegate:self];
    self.alpha=0.0;
    [UIView commitAnimations];
    
}

@end
